package com.ym.ganio;

import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.ym.ganio.gan.GanMainFragment;

public class MainActivity extends AppCompatActivity implements GanMainFragment.OnFragmentInteractionListener {
    private final String LOG_TAG = "MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
        GanMainFragment fragment = new GanMainFragment();
        getSupportFragmentManager().beginTransaction().replace(android.R.id.content, fragment, "").commit();
    }

    @Override
    public void onFragmentInteraction(Uri uri) {
        Log.i(LOG_TAG, uri.getHost());
    }

}
